package com.zhu.service.impl;

import com.zhu.DAO.TypeDao;
import com.zhu.bean.Type;
import com.zhu.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("typeService")
public class TypeServiceImpl implements TypeService {
    @Autowired
    private  TypeDao typeDao;
    @Override
    public List<Type> getAll() {
        return typeDao.selectAll();
    }
}
